﻿// 18.int.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
// 整形

#include <stdio.h>

int main() {
	char x[] = "xxxxxxxxxxxxxxxxxxx惺惺惜惺惺想寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻寻xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
	//带符号定义整形变量
	short int a = 1;
	short b = 2;
	int c = 3;
	long d = 4;
	long long e = 5;
	signed int f= -1;
	//不带符号
	unsigned short h = 1;//所有位数用来存储数值
	unsigned short i = -1;

	printf("%u,%u\n",h,i);
	printf("字节数：%d，位数：%d\n",sizeof(short), sizeof(short)*8);
	printf("%s",x);
	




	return 0;
}